package com.gpframework.common.pay.leshua.req;

/**
 * @author eden
 * @date 2018/5/21 下午3:36
 * @desc
 */
public class LeshuaTransRefundReq extends LeshuaBaseReq {
	
	/**
	 * 乐刷订单号
	 */
	public String leshua_order_id;
	
	/**
	 * 商户退款id
	 */
	public String merchant_refund_id;
	
	/**
	 * 退款金额
	 */
	public String refund_amount;
	
	/**
	 * 通知地址
	 */
	public String notify_url;

	public void setRefund_amount(String refund_amount) {
		this.refund_amount = refund_amount;
	}



	public void setMerchant_refund_id(String merchant_refund_id) {
		this.merchant_refund_id = merchant_refund_id;
	}
	
	public String getNotify_url() {
		return notify_url;
	}



	public void setNotify_url(String notify_url) {
		this.notify_url = notify_url;
	}



	public String getLeshua_order_id() {
		return leshua_order_id;
	}



	public String getMerchant_refund_id() {
		return merchant_refund_id;
	}



	public String getRefund_amount() {
		return refund_amount;
	}



	/**
	 * 
	 */
	public LeshuaTransRefundReq() {
		this.service = "unified_refund";
	}

	/**
	 * 
	 * @param merchant_id
	 * @param merchant_refund_id
	 * @param refund_amount
	 */
	@Deprecated
	public LeshuaTransRefundReq(String merchant_id,  String merchant_refund_id,String refund_amount) {
		setService("unified_refund");
		setMerchant_id(merchant_id);
		
		setMerchant_refund_id(merchant_refund_id);
		setRefund_amount(refund_amount);

	}
	

	public void setLeshua_order_id(String leshua_order_id) {
		this.leshua_order_id = leshua_order_id;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("LeshuaTransRefundReq [leshua_order_id=");
		builder.append(leshua_order_id);
		builder.append(", service=");
		builder.append(service);
		builder.append(", merchant_id=");
		builder.append(merchant_id);
		builder.append(", third_order_id=");
		builder.append(third_order_id);
		builder.append(", nonce_str=");
		builder.append(nonce_str);
		builder.append(", sign=");
		builder.append(sign);
		builder.append("]");
		return builder.toString();
	}
}
